package ru.compscicenter.uno;


import ru.compscicenter.uno.log.Logger;
import ru.compscicenter.uno.wizard.*;

public class Main_wizard {

    public static void main(String[] args) {

        GameSettings gameSettings = new GameSettings();
        new Logger(Logger.Mode.ACTION, Logger.DEFAULT_FILE);
        Logger.write("\n", Logger.Mode.ACTION);
        Logger.write("APPLICATION STARTED", Logger.Mode.ACTION);

        Wizard wizard = new Wizard(gameSettings);
        wizard.getDialog().setTitle("UNO");

        WizardPanelDescriptor descriptor1 = new Panel1Descriptor(gameSettings);
        wizard.registerWizardPanel(Panel1Descriptor.IDENTIFIER, descriptor1);
        WizardPanelDescriptor descriptor2client = new Panel2ClientDescriptor(gameSettings);
        wizard.registerWizardPanel(Panel2ClientDescriptor.IDENTIFIER, descriptor2client);
        WizardPanelDescriptor descriptor2server = new Panel2ServerRulesDescriptor(gameSettings);
        wizard.registerWizardPanel(Panel2ServerRulesDescriptor.IDENTIFIER, descriptor2server);

        WizardPanelDescriptor descriptor3client = new Panel3ClientRulesDescriptor(gameSettings);
        wizard.registerWizardPanel(Panel3ClientRulesDescriptor.IDENTIFIER, descriptor3client);

        WizardPanelDescriptor descriptor3server = new Panel3ServerWaitDescriptor(gameSettings);
        wizard.registerWizardPanel(Panel3ServerWaitDescriptor.IDENTIFIER, descriptor3server);

        WizardPanelDescriptor descriptor4client = new Panel4ClientWaitDescriptor(gameSettings);
        wizard.registerWizardPanel(Panel4ClientWaitDescriptor.IDENTIFIER, descriptor4client);

/*        WizardPanelDescriptor descriptor3a = new Panel3aDescriptor();
        wizard.registerWizardPanel(Panel3aDescriptor.IDENTIFIER, descriptor3a);
        WizardPanelDescriptor descriptor3b = new Panel3bDescriptor();
        wizard.registerWizardPanel(Panel3bDescriptor.IDENTIFIER, descriptor3b);
        WizardPanelDescriptor descriptor3ba = new Panel3baDescriptor();
        wizard.registerWizardPanel(Panel3baDescriptor.IDENTIFIER, descriptor3ba);
        WizardPanelDescriptor descriptor4 = new Panel4Descriptor();
        wizard.registerWizardPanel(Panel4Descriptor.IDENTIFIER, descriptor4);

        WizardPanelDescriptor descriptor2 = new TestPanel2Descriptor();
        wizard.registerWizardPanel(TestPanel2Descriptor.IDENTIFIER, descriptor2);

        WizardPanelDescriptor descriptor3 = new TestPanel3Descriptor();
        wizard.registerWizardPanel(TestPanel3Descriptor.IDENTIFIER, descriptor3);
*/
        wizard.setCurrentPanel(Panel1Descriptor.IDENTIFIER);
        
        int ret = wizard.showModalDialog();
        
        Logger.write("WIZARD: finished", Logger.Mode.ACTION);

    }
    
}
